{% extends "polls/base.html" %}

{% block title %}域通后台{% endblock %}

{% block content %}
  <h1>域通</h1>
  {% for order in orders %}
    <h2>
      <a href="{{ order.get_absolute_url }}">
        {{ order.order_code }}
      </a>
    </h2>
    <p class="date">
        订单时间： {{ order.created_date }}
        商家： {{ order.shop.shop_name }}
    </p>
    {{ order.good_of_order_set|truncatewords:30|linebreaks }}
  {% endfor %}
{% endblock %}